import { DataTypes } from 'sequelize';
import sequelize from '../config/db.js';

const FavoritePost = sequelize.define('FavoritePost', {
  id: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    autoIncrement: true
  },
  favorite_id: {
    type: DataTypes.INTEGER,
    allowNull: false
  },
  post_id: {
    type: DataTypes.INTEGER,
    allowNull: false
  },
  user_id: {
    type: DataTypes.UUID,
    allowNull: false
  }
}, {
  tableName: 'favorite_posts',
  timestamps: true
});

export default FavoritePost;